package com.lagou.spring_session.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 重新转发请求
 */
@Controller
@RequestMapping("demo")
public class DemoController {

    @RequestMapping("/success")
    public String toLogin() {
        System.out.println("重定向到：登录成功页面");
        return "success";
    }

}
